﻿using System;
using System.Linq;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.ComponentModel;
using System.Runtime.CompilerServices;
using Windows.ApplicationModel.Resources.Core;
using Windows.Foundation;
using Windows.Foundation.Collections;
using Windows.UI.Xaml.Data;
using Windows.UI.Xaml.Media;
using Windows.UI.Xaml.Media.Imaging;
using System.Collections.Specialized;

// The data model defined by this file serves as a representative example of a strongly-typed
// model that supports notification when members are added, removed, or modified.  The property
// names chosen coincide with data bindings in the standard item templates.
//
// Applications may use this model as a starting point and build on it, or discard it entirely and
// replace it with something appropriate to their needs.

namespace Fitness.Data
{
    /// <summary>
    /// Base class for <see cref="RecipesPageDataItem"/> and <see cref="RecipesPageDataGroup"/> that
    /// defines properties common to both.
    /// </summary>
    [Windows.Foundation.Metadata.WebHostHidden]
    public abstract class RecipesPageDataCommon : Fitness.Common.BindableBase
    {
      private static Uri _baseUri = new Uri("ms-appx:///");

        public RecipesPageDataCommon(String uniqueId, String title, String subtitle, String imagePath, String description)
        {
            this._uniqueId = uniqueId;
            this._title = title;
            this._subtitle = subtitle;
            this._description = description;
            this._imagePath = imagePath;
        }

        private string _uniqueId = string.Empty;
        public string UniqueId
        {
            get { return this._uniqueId; }
            set { this.SetProperty(ref this._uniqueId, value); }
        }

        private string _title = string.Empty;
        public string Title
        {
            get { return this._title; }
            set { this.SetProperty(ref this._title, value); }
        }

        private string _subtitle = string.Empty;
        public string Subtitle
        {
            get { return this._subtitle; }
            set { this.SetProperty(ref this._subtitle, value); }
        }



        private string _Image2 = string.Empty;
        public string Image2
        {
            get { return this._Image2; }
            set { this.SetProperty(ref this._Image2, value); }
        }



		        private string _ReciTitle = string.Empty;
        public string ReciTitle
        {
            get { return this._ReciTitle; }
            set { this.SetProperty(ref this._ReciTitle, value); }
        }
		private string _ReciSub = string.Empty;
        public string ReciSub
        {
            get { return this._ReciSub; }
            set { this.SetProperty(ref this._ReciSub, value); }
        }

        private string _description = string.Empty;
        public string Description
        {
            get { return this._description; }
            set { this.SetProperty(ref this._description, value); }
        }

        private ImageSource _image = null;
        private String _imagePath = null;
        public ImageSource Image
        {
            get
            {
                if (this._image == null && this._imagePath != null)
                {
                    this._image = new BitmapImage(new Uri(RecipesPageDataCommon._baseUri, this._imagePath));
                }
                return this._image;
            }

            set
            {
                this._imagePath = null;
                this.SetProperty(ref this._image, value);
            }
        }

        public void SetImage(String path)
        {
            this._image = null;
            this._imagePath = path;
            this.OnPropertyChanged("Image");
        }

        public override string ToString()
        {
            return this.Title;
        }
    }

    /// <summary>
    /// Generic item data model.
    /// </summary>
    public class RecipesPageDataItem : RecipesPageDataCommon
    {
        public RecipesPageDataItem(String uniqueId, String title, String subtitle, String imagePath, String description, String content, int colSpan, int rowSpan, RecipesPageDataGroup group)
            : base(uniqueId, title, subtitle, imagePath, description)
        {
            this._colSpan = colSpan;
            this._rowSpan = rowSpan;
            this._content = content;
            this._group = group;
        }

        private string _content = string.Empty;
        public string Content
        {
            get { return this._content; }
            set { this.SetProperty(ref this._content, value); }
        }

        private int _rowSpan = 1;
        public int RowSpan
        {
            get { return this._rowSpan; }
            set { this.SetProperty(ref this._rowSpan, value); }
        }

        private int _colSpan = 1;
        public int ColSpan
        {
            get { return this._colSpan; }
            set { this.SetProperty(ref this._colSpan, value); }
        }


        private RecipesPageDataGroup _group;
        public RecipesPageDataGroup Group
        {
            get { return this._group; }
            set { this.SetProperty(ref this._group, value); }
        }
    }

    /// <summary>
    /// Generic group data model.
    /// </summary>
    public class RecipesPageDataGroup : RecipesPageDataCommon
    {
        public RecipesPageDataGroup(String uniqueId, String title, String subtitle, String imagePath, String description)
            : base(uniqueId, title, subtitle, imagePath, description)
        {
            Items.CollectionChanged += ItemsCollectionChanged;
        }

        private void ItemsCollectionChanged(object sender, System.Collections.Specialized.NotifyCollectionChangedEventArgs e)
        {
            // Provides a subset of the full items collection to bind to from a GroupedItemsPage
            // for two reasons: GridView will not virtualize large items collections, and it
            // improves the user experience when browsing through groups with large numbers of
            // items.
            //
            // A maximum of 12 items are displayed because it results in filled grid columns
            // whether there are 1, 2, 3, 4, or 6 rows displayed

            switch (e.Action)
            {
                case NotifyCollectionChangedAction.Add:
                    if (e.NewStartingIndex < 12)
                    {
                        TopItems.Insert(e.NewStartingIndex, Items[e.NewStartingIndex]);
                        if (TopItems.Count > 12)
                        {
                            TopItems.RemoveAt(12);
                        }
                    }
                    break;
                case NotifyCollectionChangedAction.Move:
                    if (e.OldStartingIndex < 12 && e.NewStartingIndex < 12)
                    {
                        TopItems.Move(e.OldStartingIndex, e.NewStartingIndex);
                    }
                    else if (e.OldStartingIndex < 12)
                    {
                        TopItems.RemoveAt(e.OldStartingIndex);
                        TopItems.Add(Items[11]);
                    }
                    else if (e.NewStartingIndex < 12)
                    {
                        TopItems.Insert(e.NewStartingIndex, Items[e.NewStartingIndex]);
                        TopItems.RemoveAt(12);
                    }
                    break;
                case NotifyCollectionChangedAction.Remove:
                    if (e.OldStartingIndex < 12)
                    {
                        TopItems.RemoveAt(e.OldStartingIndex);
                        if (Items.Count >= 12)
                        {
                            TopItems.Add(Items[11]);
                        }
                    }
                    break;
                case NotifyCollectionChangedAction.Replace:
                    if (e.OldStartingIndex < 12)
                    {
                        TopItems[e.OldStartingIndex] = Items[e.OldStartingIndex];
                    }
                    break;
                case NotifyCollectionChangedAction.Reset:
                    TopItems.Clear();
                    while (TopItems.Count < Items.Count && TopItems.Count < 12)
                    {
                        TopItems.Add(Items[TopItems.Count]);
                    }
                    break;
            }
        }

        private ObservableCollection<RecipesPageDataItem> _items = new ObservableCollection<RecipesPageDataItem>();
        public ObservableCollection<RecipesPageDataItem> Items
        {
            get { return this._items; }
        }

        private ObservableCollection<RecipesPageDataItem> _topItem = new ObservableCollection<RecipesPageDataItem>();
        public ObservableCollection<RecipesPageDataItem> TopItems
        {
            get { return this._topItem; }
        }
    }

    /// <summary>
    /// Creates a collection of groups and items with hard-coded content.
    /// 
    /// RecipesPageDataSource initializes with placeholder data rather than live production
    /// data so that sample data is provided at both design-time and run-time.
    /// </summary>
    public sealed class RecipesPageDataSource
    {
        private static RecipesPageDataSource _RecipesPageDataSource = new RecipesPageDataSource();

        private ObservableCollection<RecipesPageDataGroup> _allGroups = new ObservableCollection<RecipesPageDataGroup>();
        public ObservableCollection<RecipesPageDataGroup> AllGroups
        {
            get { return this._allGroups; }
        }

        public static IEnumerable<RecipesPageDataGroup> GetGroups(string uniqueId)
        {
            if (!uniqueId.Equals("AllGroups")) throw new ArgumentException("Only 'AllGroups' is supported as a collection of groups");

            return _RecipesPageDataSource.AllGroups;
        }

        public static RecipesPageDataGroup GetGroup(string uniqueId)
        {
            // Simple linear search is acceptable for small data sets
            var matches = _RecipesPageDataSource.AllGroups.Where((group) => group.UniqueId.Equals(uniqueId));
            if (matches.Count() == 1) return matches.First();
            return null;
        }

        public static RecipesPageDataItem GetItem(string uniqueId)
        {
            // Simple linear search is acceptable for small data sets
            var matches = _RecipesPageDataSource.AllGroups.SelectMany(group => group.Items).Where((item) => item.UniqueId.Equals(uniqueId));
            if (matches.Count() == 1) return matches.First();
            return null;
        }



        public RecipesPageDataSource()
        {
            String ITEM_CONTENT = String.Format("Item Content: {0}\n\n{0}\n\n{0}\n\n{0}\n\n{0}\n\n{0}\n\n{0}",
                        "Curabitur class aliquam vestibulum nam curae maecenas sed integer cras phasellus suspendisse quisque donec dis praesent accumsan bibendum pellentesque condimentum adipiscing etiam consequat vivamus dictumst aliquam duis convallis scelerisque est parturient ullamcorper aliquet fusce suspendisse nunc hac eleifend amet blandit facilisi condimentum commodo scelerisque faucibus aenean ullamcorper ante mauris dignissim consectetuer nullam lorem vestibulum habitant conubia elementum pellentesque morbi facilisis arcu sollicitudin diam cubilia aptent vestibulum auctor eget dapibus pellentesque inceptos leo egestas interdum nulla consectetuer suspendisse adipiscing pellentesque proin lobortis sollicitudin augue elit mus congue fermentum parturient fringilla euismod feugiat");

            var group1 = new RecipesPageDataGroup("Group-1",
                 "",
                 "Group Subtitle: 1",
                 "Assets/DarkGray.png",
                 "Group Description: Lorem ipsum dolor sit amet, consectetur adipiscing elit. Vivamus tempor scelerisque lorem in vehicula. Aliquam tincidunt, lacus ut sagittis tristique, turpis massa volutpat augue, eu rutrum ligula ante a ante");

            group1.Items.Add(new RecipesPageDataItem("RecipesBig-Group-1-Item1",
                 "Pomegranete Lettuce Salad",
                 "",
                 "Assets/HubPage/RecipesPIc1.png",
                 "Item Description: Pellentesque porta, mauris quis interdum vehicula, urna sapien ultrices velit, nec venenatis dui odio in augue. Cras posuere, enim a cursus convallis, neque turpis malesuada erat, ut adipiscing neque tortor ac erat.",
                 ITEM_CONTENT, 45, 102,
                 group1));

            group1.Items.Add(new RecipesPageDataItem("RecipesSmall-Group-1-Item2",
                "Very Berry shake",
                 "",				
				"Assets/HubPage/RecipesPIc2.png",
                "Item Description: Pellentesque porta, mauris quis interdum vehicula, urna sapien ultrices velit, nec venenatis dui odio in augue. Cras posuere, enim a cursus convallis, neque turpis malesuada erat, ut adipiscing neque tortor ac erat.",
                ITEM_CONTENT, 47, 34,
                group1));

            group1.Items.Add(new RecipesPageDataItem("RecipesSmall-Group-1-Item3",
                "Radish Cream salad",
                 "",               
				"Assets/HubPage/RecipesPIc5.png",
                "Item Description: Pellentesque porta, mauris quis interdum vehicula, urna sapien ultrices velit, nec venenatis dui odio in augue. Cras posuere, enim a cursus convallis, neque turpis malesuada erat, ut adipiscing neque tortor ac erat.",
                ITEM_CONTENT, 47, 34,
                group1));

            group1.Items.Add(new RecipesPageDataItem("RecipesSmall-Group-1-Item4",
                "Pasta-Vegetable Soup",
                 "",
				"Assets/HubPage/RecipesPIc4.png",
                "Item Description: Pellentesque porta, mauris quis interdum vehicula, urna sapien ultrices velit, nec venenatis dui odio in augue. Cras posuere, enim a cursus convallis, neque turpis malesuada erat, ut adipiscing neque tortor ac erat.",
                ITEM_CONTENT, 47, 34,
                group1));
            group1.Items.Add(new RecipesPageDataItem("RecipesSmall-Group-1-Item5",
                "Mix Fruit Salad",
                 "",
				"Assets/RecipesPage/RelpIc1.png",
                "Item Description: Pellentesque porta, mauris quis interdum vehicula, urna sapien ultrices velit, nec venenatis dui odio in augue. Cras posuere, enim a cursus convallis, neque turpis malesuada erat, ut adipiscing neque tortor ac erat.",
                ITEM_CONTENT, 47, 34,
                group1));
            group1.Items.Add(new RecipesPageDataItem("RecipesMedium-Group-1-Item6",
                "Chilled Cucumber Mocktail",
                 "",
				"Assets/HubPage/RecipesMedPIc1.png",
                "Item Description: Pellentesque porta, mauris quis interdum vehicula, urna sapien ultrices velit, nec venenatis dui odio in augue. Cras posuere, enim a cursus convallis, neque turpis malesuada erat, ut adipiscing neque tortor ac erat.",
                ITEM_CONTENT, 47, 67,
                group1));
            group1.Items.Add(new RecipesPageDataItem("RecipesSmall-Group-1-Item7",
             "Brocolli Stir Fry",
                 "",
				"Assets/HubPage/RecipesPIc3.png",
             "Item Description: Pellentesque porta, mauris quis interdum vehicula, urna sapien ultrices velit, nec venenatis dui odio in augue. Cras posuere, enim a cursus convallis, neque turpis malesuada erat, ut adipiscing neque tortor ac erat.",
             ITEM_CONTENT, 47, 34,
             group1));
            group1.Items.Add(new RecipesPageDataItem("RecipesSmall-Group-1-Item8",
            "MixVegetable Broth",
                 "",
				"Assets/RecipesPage/RelpIc4.png",
            "Item Description: Pellentesque porta, mauris quis interdum vehicula, urna sapien ultrices velit, nec venenatis dui odio in augue. Cras posuere, enim a cursus convallis, neque turpis malesuada erat, ut adipiscing neque tortor ac erat.",
            ITEM_CONTENT, 47, 34,
            group1));
            group1.Items.Add(new RecipesPageDataItem("RecipesSmall-Group-1-Item9",
            "Honey Grape Salad",
                 "",
				"Assets/RecipesPage/RelpIc5.png",
            "Item Description: Pellentesque porta, mauris quis interdum vehicula, urna sapien ultrices velit, nec venenatis dui odio in augue. Cras posuere, enim a cursus convallis, neque turpis malesuada erat, ut adipiscing neque tortor ac erat.",
            ITEM_CONTENT, 47, 34,
            group1));
            group1.Items.Add(new RecipesPageDataItem("RecipesSmall-Group-1-Item10",
            "Pasta-Vegetable Soup",
                 "",
				"Assets/RecipesPage/RelpIc6.png",
            "Item Description: Pellentesque porta, mauris quis interdum vehicula, urna sapien ultrices velit, nec venenatis dui odio in augue. Cras posuere, enim a cursus convallis, neque turpis malesuada erat, ut adipiscing neque tortor ac erat.",
            ITEM_CONTENT, 47, 34,
            group1));
            group1.Items.Add(new RecipesPageDataItem("RecipesLagre-Group-1-Item11",
          "Smoked Salmon",
                 "",
				"Assets/RecipesPage/RelpIc7.png",
          "Item Description: Pellentesque porta, mauris quis interdum vehicula, urna sapien ultrices velit, nec venenatis dui odio in augue. Cras posuere, enim a cursus convallis, neque turpis malesuada erat, ut adipiscing neque tortor ac erat.",
          ITEM_CONTENT, 94, 67,
          group1));
            group1.Items.Add(new RecipesPageDataItem("RecipesSmall-Group-1-Item12",
            "Pasta-Vegetable Soup",
                 "",
				"Assets/RecipesPage/RelpIc8.png",
            "Item Description: Pellentesque porta, mauris quis interdum vehicula, urna sapien ultrices velit, nec venenatis dui odio in augue. Cras posuere, enim a cursus convallis, neque turpis malesuada erat, ut adipiscing neque tortor ac erat.",
            ITEM_CONTENT, 47, 34,
            group1));
            group1.Items.Add(new RecipesPageDataItem("RecipesMedium-Group-1-Item13",
                "Egg Crouton salad",
                 "",
				"Assets/RecipesPage/RelpIc9.png",
                "Item Description: Pellentesque porta, mauris quis interdum vehicula, urna sapien ultrices velit, nec venenatis dui odio in augue. Cras posuere, enim a cursus convallis, neque turpis malesuada erat, ut adipiscing neque tortor ac erat.",
                ITEM_CONTENT, 47, 67,
                group1));
            group1.Items.Add(new RecipesPageDataItem("RecipesSmall-Group-1-Item14",
            "Steamed Dumplings",
                 "",
				"Assets/RecipesPage/RelpIc10.png",
            "Item Description: Pellentesque porta, mauris quis interdum vehicula, urna sapien ultrices velit, nec venenatis dui odio in augue. Cras posuere, enim a cursus convallis, neque turpis malesuada erat, ut adipiscing neque tortor ac erat.",
            ITEM_CONTENT, 47, 34,
            group1));
            this.AllGroups.Add(group1);





         //   var group2 = new RecipesPageDataGroup("Group-2",
         //       "Cuisines",
         //       "Group Subtitle: 1",
         //       "Assets/DarkGray.png",
         //       "Group Description: Lorem ipsum dolor sit amet, consectetur adipiscing elit. Vivamus tempor scelerisque lorem in vehicula. Aliquam tincidunt, lacus ut sagittis tristique, turpis massa volutpat augue, eu rutrum ligula ante a ante");

         //   group2.Items.Add(new RecipesPageDataItem("ServiceSmall-Group-2-Item1",
         //     "Weight Training",
         //     "",
         //       "Assets/HubPage/ServiceSmallPic2.png",
         //       "Item Description: Pellentesque porta, mauris quis interdum vehicula, urna sapien ultrices velit, nec venenatis dui odio in augue. Cras posuere, enim a cursus convallis, neque turpis malesuada erat, ut adipiscing neque tortor ac erat.",
         //       ITEM_CONTENT, 41, 26,
         //       group2));

         //   group2.Items.Add(new RecipesPageDataItem("ServiceSmall-Group-2-Item2",
         //     "Pilates",
         //     "",
         //       "Assets/HubPage/ServiceSmallPic1.png",
         //     "Item Description: Pellentesque porta, mauris quis interdum vehicula, urna sapien ultrices velit, nec venenatis dui odio in augue. Cras posuere, enim a cursus convallis, neque turpis malesuada erat, ut adipiscing neque tortor ac erat.",
         //       ITEM_CONTENT, 41, 26,
         //     group2));

         //   group2.Items.Add(new RecipesPageDataItem("SLT-Group-2-Item3",
         //     "Zumba",
         //     "",
         //       "Assets/HubPage/ServiceBig.png",
         //     "Item Description: Pellentesque porta, mauris quis interdum vehicula, urna sapien ultrices velit, nec venenatis dui odio in augue. Cras posuere, enim a cursus convallis, neque turpis malesuada erat, ut adipiscing neque tortor ac erat.",
         //     ITEM_CONTENT, 24, 51,
         //     group2));
          
         //   group2.Items.Add(new RecipesPageDataItem("ServiceSmall-Group-2-Item4",
         //     "Power Yoga",
         //     "",
         //       "Assets/HubPage/ServiceSmallPic4.png",
         //     "Item Description: Pellentesque porta, mauris quis interdum vehicula, urna sapien ultrices velit, nec venenatis dui odio in augue. Cras posuere, enim a cursus convallis, neque turpis malesuada erat, ut adipiscing neque tortor ac erat.",
         //     ITEM_CONTENT, 41, 26,
         //     group2));
         //   group2.Items.Add(new RecipesPageDataItem("ServiceSmall-Group-2-Item5",
         //     "Aerobics",
         //     "290 Recipes",
         //       "Assets/HubPage/ServiceSmallPic3.png",
         //     "Item Description: Pellentesque porta, mauris quis interdum vehicula, urna sapien ultrices velit, nec venenatis dui odio in augue. Cras posuere, enim a cursus convallis, neque turpis malesuada erat, ut adipiscing neque tortor ac erat.",
         //     ITEM_CONTENT, 41, 25,
         //     group2));
         //   group2.Items.Add(new RecipesPageDataItem("SLT-Group-2-Item6",
         //   "Fitness",
         //   "290 Recipes",
         //       "Assets/HubPage/ServiceBig1.png",
         //   "Item Description: Pellentesque porta, mauris quis interdum vehicula, urna sapien ultrices velit, nec venenatis dui odio in augue. Cras posuere, enim a cursus convallis, neque turpis malesuada erat, ut adipiscing neque tortor ac erat.",
         //   ITEM_CONTENT, 24, 51,
         //   group2));
         //this.AllGroups.Add(group2);

         //var group3 = new RecipesPageDataGroup("Group-3",
         //  "Calculators",
         //  "Group Subtitle: 1",
         //  "Assets/HubPage/Cuisines1.png",
         //  "Group Description: Lorem ipsum dolor sit amet, consectetur adipiscing elit. Vivamus tempor scelerisque lorem in vehicula. Aliquam tincidunt, lacus ut sagittis tristique, turpis massa volutpat augue, eu rutrum ligula ante a ante");

         //    group3.Items.Add(new RecipesPageDataItem("Calculators-Group-3-Item1",
         //    "Body Mass Index Calculator",
         //    "Results:",
         //    "Assets/HubPage/Cuisines1.png",
         //    "Item Description: Pellentesque porta, mauris quis interdum vehicula, urna sapien ultrices velit, nec venenatis dui odio in augue. Cras posuere, enim a cursus convallis, neque turpis malesuada erat, ut adipiscing neque tortor ac erat.",
         //    ITEM_CONTENT, 112, 102,
         //    group3));
         //this.AllGroups.Add(group3);



         //var group4 = new RecipesPageDataGroup("Group-4",
         //  "Latest News",
         //  "Group Subtitle: 1",
         //  "Assets/DarkGray.png",
         //  "Group Description: Lorem ipsum dolor sit amet, consectetur adipiscing elit. Vivamus tempor scelerisque lorem in vehicula. Aliquam tincidunt, lacus ut sagittis tristique, turpis massa volutpat augue, eu rutrum ligula ante a ante");

         //group4.Items.Add(new RecipesPageDataItem("Latest-Group-4-Item1",
         //    "Lorem Ipsum Dolor Sit Amet",
         //    "20th OCT 2012",
         //    "Assets/HubPage/PopRecipes.png",
         //    "Item Description: Pellentesque porta, mauris quis interdum vehicula, urna sapien ultrices velit, nec venenatis dui odio in augue. Cras posuere, enim a cursus convallis, neque turpis malesuada erat, ut adipiscing neque tortor ac erat.",
         //    ITEM_CONTENT, 72, 24,
         //    group4));

         //group4.Items.Add(new RecipesPageDataItem("Latest-Group-4-Item2",
         //    "Lorem Ipsum Dolor Sit Amet",
         //    "20th OCT 2012",
         //    "Assets/HubPage/PopRecipes.png",
         //    "Item Description: Pellentesque porta, mauris quis interdum vehicula, urna sapien ultrices velit, nec venenatis dui odio in augue. Cras posuere, enim a cursus convallis, neque turpis malesuada erat, ut adipiscing neque tortor ac erat.",
         //    ITEM_CONTENT, 72, 24,
         //    group4));

         //group4.Items.Add(new RecipesPageDataItem("Latest-Group-4-Item3",
         //    "Lorem Ipsum Dolor Sit Amet",
         //    "20th OCT 2012",
         //    "Assets/HubPage/PopRecipes.png",
         //    "Item Description: Pellentesque porta, mauris quis interdum vehicula, urna sapien ultrices velit, nec venenatis dui odio in augue. Cras posuere, enim a cursus convallis, neque turpis malesuada erat, ut adipiscing neque tortor ac erat.",
         //    ITEM_CONTENT, 72, 24,
         //    group4));

         //group4.Items.Add(new RecipesPageDataItem("Latest-Group-4-Item4",
         //    "Lorem Ipsum Dolor Sit Amet",
         //    "20th OCT 2012",
         //    "Assets/HubPage/PopRecipes.png",
         //    "Item Description: Pellentesque porta, mauris quis interdum vehicula, urna sapien ultrices velit, nec venenatis dui odio in augue. Cras posuere, enim a cursus convallis, neque turpis malesuada erat, ut adipiscing neque tortor ac erat.",
         //    ITEM_CONTENT, 72, 24,
         //    group4));

         //    this.AllGroups.Add(group4);

         //    var group5 = new RecipesPageDataGroup("Group-5",
         //      "Recipes",
         //      "Group Subtitle: 1",
         //      "Assets/DarkGray.png",
         //      "Group Description: Lorem ipsum dolor sit amet, consectetur adipiscing elit. Vivamus tempor scelerisque lorem in vehicula. Aliquam tincidunt, lacus ut sagittis tristique, turpis massa volutpat augue, eu rutrum ligula ante a ante");

         //    group5.Items.Add(new RecipesPageDataItem("RecipesBig-Group-5-Item1",
         //        "Pomegranete Lettuce Salad",
         //        "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Curabitur scelerisque purus eget enim rutrum laoreet at viverra nibh. Aenean eu ante urna.",
         //        "Assets/HubPage/RecipesPIc1.png",
         //        "Item Description: Pellentesque porta, mauris quis interdum vehicula, urna sapien ultrices velit, nec venenatis dui odio in augue. Cras posuere, enim a cursus convallis, neque turpis malesuada erat, ut adipiscing neque tortor ac erat.",
         //        ITEM_CONTENT, 45,102,
         //        group5));

         //    group5.Items.Add(new RecipesPageDataItem("RecipesSmall-Group-5-Item2",
         //        "Very Berry shake",
         //        "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Curabitur scelerisque purus eget enim rutrum laoreet at viverra nibh. Aenean eu ante urna.",
         //        "Assets/HubPage/RecipesPIc2.png",
         //        "Item Description: Pellentesque porta, mauris quis interdum vehicula, urna sapien ultrices velit, nec venenatis dui odio in augue. Cras posuere, enim a cursus convallis, neque turpis malesuada erat, ut adipiscing neque tortor ac erat.",
         //        ITEM_CONTENT, 47, 34,
         //        group5));

         //    group5.Items.Add(new RecipesPageDataItem("RecipesSmall-Group-5-Item3",
         //        "Radish Cream salad",
         //        "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Curabitur scelerisque purus eget enim rutrum laoreet at viverra nibh. Aenean eu ante urna.",
         //        "Assets/HubPage/RecipesPIc5.png",
         //        "Item Description: Pellentesque porta, mauris quis interdum vehicula, urna sapien ultrices velit, nec venenatis dui odio in augue. Cras posuere, enim a cursus convallis, neque turpis malesuada erat, ut adipiscing neque tortor ac erat.",
         //        ITEM_CONTENT, 47, 34,
         //        group5));

         //    group5.Items.Add(new RecipesPageDataItem("RecipesSmall-Group-5-Item4",
         //        "Pasta-Vegetable Soup",
         //        "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Curabitur scelerisque purus eget enim rutrum laoreet at viverra nibh. Aenean eu ante urna.",
         //        "Assets/HubPage/RecipesPIc4.png",
         //        "Item Description: Pellentesque porta, mauris quis interdum vehicula, urna sapien ultrices velit, nec venenatis dui odio in augue. Cras posuere, enim a cursus convallis, neque turpis malesuada erat, ut adipiscing neque tortor ac erat.",
         //        ITEM_CONTENT, 47, 34,
         //        group5));
         //    group5.Items.Add(new RecipesPageDataItem("RecipesSmall-Group-5-Item5",
         //        "Brocolli Stir Fry",
         //        "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Curabitur scelerisque purus eget enim rutrum laoreet at viverra nibh. Aenean eu ante urna.",
         //        "Assets/HubPage/RecipesPIc3.png",
         //        "Item Description: Pellentesque porta, mauris quis interdum vehicula, urna sapien ultrices velit, nec venenatis dui odio in augue. Cras posuere, enim a cursus convallis, neque turpis malesuada erat, ut adipiscing neque tortor ac erat.",
         //        ITEM_CONTENT, 47, 34,
         //        group5));
         //    group5.Items.Add(new RecipesPageDataItem("RecipesMedium-Group-5-Item6",
         //        "Chilled Cucumber Mocktail",
         //        "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Curabitur scelerisque purus eget enim rutrum laoreet at viverra nibh. Aenean eu ante urna.",
         //        "Assets/HubPage/RecipesMedPIc1.png",
         //        "Item Description: Pellentesque porta, mauris quis interdum vehicula, urna sapien ultrices velit, nec venenatis dui odio in augue. Cras posuere, enim a cursus convallis, neque turpis malesuada erat, ut adipiscing neque tortor ac erat.",
         //        ITEM_CONTENT, 47, 67,
         //        group5));

         //    this.AllGroups.Add(group5);
         //    var group6 = new RecipesPageDataGroup("Group-6",
         //       "Success Stories",
         //       "Group Subtitle: 1",
         //       "Assets/DarkGray.png",
         //       "Group Description: Lorem ipsum dolor sit amet, consectetur adipiscing elit. Vivamus tempor scelerisque lorem in vehicula. Aliquam tincidunt, lacus ut sagittis tristique, turpis massa volutpat augue, eu rutrum ligula ante a ante");

         //    group6.Items.Add(new RecipesPageDataItem("Success-Group-6-Item1",
         //        "My Name",
         //        "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Curabitur scelerisque purus eget enim rutrum laoreet at viverra nibh. Aenean eu ante urna.",
         //        "Assets/HubPage/SuccessPIc1.png",
         //        "Item Description: Pellentesque porta, mauris quis interdum vehicula, urna sapien ultrices velit, nec venenatis dui odio in augue. Cras posuere, enim a cursus convallis, neque turpis malesuada erat, ut adipiscing neque tortor ac erat.",
         //        ITEM_CONTENT, 95, 24,
         //        group6) { Image2 = "Assets/HubPage/SuccessPIc1Af.png" });
         //    group6.Items.Add(new RecipesPageDataItem("Success-Group-6-Item1",
         //        "My Name",
         //        "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Curabitur scelerisque purus eget enim rutrum laoreet at viverra nibh. Aenean eu ante urna.",
         //        "Assets/HubPage/SuccessPIc2.png",
         //        "Item Description: Pellentesque porta, mauris quis interdum vehicula, urna sapien ultrices velit, nec venenatis dui odio in augue. Cras posuere, enim a cursus convallis, neque turpis malesuada erat, ut adipiscing neque tortor ac erat.",
         //        ITEM_CONTENT, 95, 24,
         //        group6) { Image2 = "Assets/HubPage/SuccessPIc2Af.png" });
         //    group6.Items.Add(new RecipesPageDataItem("Success-Group-6-Item1",
         //        "My Name",
         //        "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Curabitur scelerisque purus eget enim rutrum laoreet at viverra nibh. Aenean eu ante urna.",
         //        "Assets/HubPage/SuccessPIc3.png",
         //        "Item Description: Pellentesque porta, mauris quis interdum vehicula, urna sapien ultrices velit, nec venenatis dui odio in augue. Cras posuere, enim a cursus convallis, neque turpis malesuada erat, ut adipiscing neque tortor ac erat.",
         //        ITEM_CONTENT, 95, 24,
         //        group6) { Image2 = "Assets/HubPage/SuccessPIc3Af.png" });
         //    group6.Items.Add(new RecipesPageDataItem("Success-Group-6-Item1",
         //        "My Name",
         //        "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Curabitur scelerisque purus eget enim rutrum laoreet at viverra nibh. Aenean eu ante urna.",
         //        "Assets/HubPage/SuccessPIc4.png",
         //        "Item Description: Pellentesque porta, mauris quis interdum vehicula, urna sapien ultrices velit, nec venenatis dui odio in augue. Cras posuere, enim a cursus convallis, neque turpis malesuada erat, ut adipiscing neque tortor ac erat.",
         //        ITEM_CONTENT, 95, 24,
         //        group6) { Image2 = "Assets/HubPage/SuccessPIc4Af.png" });
         //    this.AllGroups.Add(group6);
        }
    }
}

